package com.example.netty.wechat;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;
import java.util.Map;

/**
 * TODO: 这里要写注释的!
 */
public class Response {
    private String requestId;
    private Long serviceId;
    private boolean isSucc;
    private Map<String,Object> hadOnline= new HashMap<>();
    private String message;

    public Long getServiceId() {
        return serviceId;
    }

    public void setServiceId(Long serviceId) {
        this.serviceId = serviceId;
    }

    public boolean getIsSucc() {
        return isSucc;
    }

    public Response setIsSucc(boolean isSucc) {
        this.isSucc = isSucc;
        return this;
    }

    public Map<String, Object> getHadOnline() {
        return hadOnline;
    }

    public void setHadOnline(Map<String, Object> hadOnline) {
        this.hadOnline = hadOnline;
    }

    public boolean isSucc() {
        return isSucc;
    }

    public String getMessage() {
        return message;
    }

    public Response setMessage(String message) {
        this.message = message;
        return this;
    }
    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }
    public String toJson(){
        return JSON.toJSONString(this);
    }
}
